// stores/user.js
import { defineStore } from 'pinia'
 
export const useUserStore = defineStore('user', {
  state: () => ({
    name: 'John Doe',
    age: 30,
  }),
  actions: {
    setName(name) {
      this.name = name;
    },
    incrementAge() {
      this.age++;
    }
  }
})